package com.yinquan.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.yishun.springboot.dao.CWRServiceTest;

import lombok.extern.slf4j.Slf4j;

/**
 *网上找的什么定时类方法不知道是什么，删了？
*/

@Slf4j
@Component
public class FixedPrintTask {
    private Logger logger = LoggerFactory.getLogger(getClass());
    private int i;

    @Scheduled(cron = "*/15 * * * * ?")
    public void execute() {
    	log.info("cron start!");
        logger.info("thread id:{},FixedPrintTask execute times:{}");
    }

}
